package com.itany.corejava.day07;

public class Test3 {

    public static void main(String[] args) {
        Complex c1=new Complex(5,8);

        Complex c2=new Complex(2,5);

//        Complex c3=c1.add(c2);
        Complex c3=Complex.add(c1,c2);

        System.out.println("c1 = " + c1);
        System.out.println("c2 = " + c2);
        System.out.println("c3 = " + c3);

    }
}
